package com.trust.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ccc
 * @since 2023-11-24 14:44:43
 */
@Data
@TableName("inventory_material")
public class InventoryMaterial {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("库存批号")
    private String code;

    @ApiModelProperty("物料id")
    private Integer materialId;

    @ApiModelProperty("物料名称")
    private String materialName;

    @ApiModelProperty("库存数量")
    private BigDecimal stock;

    @ApiModelProperty("仓库id")
    private Integer storehouseId;

    @ApiModelProperty("库存单位")
    private String unit;

    @ApiModelProperty("单位id")
    private Integer unitId;

    @ApiModelProperty("入库单号")
    private String inCode;

    @ApiModelProperty("入库时间")
    private Date inTime;

    @ApiModelProperty("追溯码")
    private String qrCode;

    @ApiModelProperty("物料类型")
    private Integer type;

    @ApiModelProperty("物料类型名称")
    private String typeName;

    @ApiModelProperty("入库类型 1采购入库 2加工入库")
    private Integer inType;

    @ApiModelProperty("入库的父id")
    private Integer inId;

    @ApiModelProperty("类型 1原料 2成品")
    private Integer materialType;

    @ApiModelProperty("放行状态 1待放行 2已放行")
    private Integer releaseState;
    @ApiModelProperty("追溯码编号")
    private String traceCode;
}
